


/**
 * created on 2012-04-25
 * @author  qiujz
 * @version 1.0
 *
 * Copyright (c)  Founder Software (Suzhou) Co., Ltd.  2012
 *  All rights reserved.
 *
 * 
 * ================================================================
 * Change Revision
 * ---------------------------------------------------------------
 *    DATE                BY                   COMMENT
 * ---------------------------------------------------------------
 * 2012-04-25         qiujz                Create class
 * 
 *
 * ================================================================
 */

package com.qjz.service;

import java.util.List;

import javax.jws.WebService;

import com.founder.mh.framework.entity.QueryResultBase;
import com.qjz.entity.DataQueryParameter;
import com.qjz.entity.DistinctTo;
import com.qjz.entity.StudentInfoQueryParameter;
import com.qjz.entity.StudentInfoTo;

@WebService
public interface IStudentInfoService {
	/**
	 * 查询方法
	 * 
	 * @param paramter
	 *            查询参数对象
	 * @return 查询结果集
	 */
	QueryResultBase searchStudentInfoList(StudentInfoQueryParameter paramter);
	
	
	/**
	 * @param sfid
	 *        	记录ID
	 * @return 实体对象
	 */
	StudentInfoTo getStudentInfoByPrimaryKey(int sfid);
	
		
	/**
	 * @param studentInfo
	 *           实体对象
	 * @return 插入记录数
	 */
	StudentInfoTo insertStudentInfo(StudentInfoTo studentInfo);
	
	/**
	 * @param studentInfo
	 *           实体对象
	 * @return 更新记录数
	 */
	int updateStudentInfo(StudentInfoTo studentInfo);
	
	
	/**
	 * @param sfid
	 *         记录ID
	 * @return 删除记录数
	 */
	int deleteStudentInfo(int sfid);
	
	/**
	 * @param keyArray
	 *         记录ID数组
	 */
	void deleteStudentInfoBatch(String[] keyArray);
	
	/**
	 * 获取所上传excel中的数据
	 * @param paramter
	 * @return
	 */
	List<StudentInfoTo> getExcelData(DataQueryParameter paramter);
	
	/**
	 * 同步数据
	 * @param paramter
	 * @param list
	 */
	void synData(StudentInfoQueryParameter paramter, List<StudentInfoTo> list);
	
	/**
	 * 导出Excel
	 * @param paramter
	 * @return
	 */
	String exportData(StudentInfoQueryParameter paramter);
	
	List<DistinctTo> searchDistinctList();
	
	List<DistinctTo> searchBanJiList(String school);
}
